package com.quanyan.search.exception;

import com.quanyan.common.enums.BaseEnum;

/**
 * @author
 * @date 16/5/27-14:06
 */
public enum RespPlaceSearchEnum implements BaseEnum {

    PLCAE_PROCESSED_SUCCESS(60000, "PLCAE_PROCESSED_SUCCESS", "场馆操作成功", false),
    QUERY_PLACE_INDEX_FAIL(60001, "QUERY_PLACE_INDEX_FAIL", "查询场馆失败", false),
    QUERY_PLACES_INDEX_FAIL(60002, "QUERY_PLACE_INDEX_FAIL", "查询多个场馆失败", false),
    ADD_PLACE_INDEX_FAIL(60003, "ADD_PLACE_INDEX_FAIL", "添加场馆索引失败", false),
    ADD_PLACES_INDEX_FAIL(60004, "ADD_PLACES_INDEX_FAIL", "添加多个场馆索引失败", false),
    DELETE_PLACE_INDEX_FAIL(60005, "DELETE_PLACE_INDEX_FAIL", "删除场馆索引失败", false),
    DELETE_PLACES_INDEX_FAIL(60006, "DELETE_PLACES_INDEX_FAIL", "删除多个场馆索引失败", false),
    ADD_PLACESALESTATE_INDEX_FAIL(60007, "UPDATE_PLACESALESTATE_INDEX_FAIL", "添加场馆售卖状态索引失败", false);



    private int id;

    private String code;

    private String label;

    private boolean success;

    RespPlaceSearchEnum(int id, String code, String label, boolean success) {
        this.id = id;
        this.code = code;
        this.label = label;
        this.success = success;
    }

    @Override
    public int getId() {
        return this.id;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getLabel() {
        return this.label;
    }

    @Override
    public boolean isSuccess() {
        return this.success;
    }
}
